
// 不需要权限
import noAuthRoutes from './no-auth'

const Entry = () => import(/* webpackChunkName: "entry" */ '@/pages/entry/index.vue')
// const EntryApp = () => import(/* webpackChunkName: "entry" */ '@/pages/entry-app/index.vue')

const routes = {
  entry: {
    path: '/',
    component: Entry, // 需要权限
    // components: EntryApp, // 需要权限
    redirect: {
      // name: 'home'
      name: 'ecrf-detail' // 跳转至表单详情页
    },
    children: [
      ...Object.values(noAuthRoutes),
    ]
  },
  noCredit: {
    path: '/no-credit', // 不需要权限
    component: Entry
  },
}

export default routes
